{smcl}
{txt}{sf}{ul off}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\J.PARK\Dropbox\Discrimination Project_for me\Organizational Diversity\2023 Version_Merging\FINAL\CFA_2012.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 8 Aug 2024, 13:18:14
{txt}
{com}. 
. 
. import delimited "C:\Users\J.PARK\Dropbox\DISCRIMINATION PROJECT\FEVS\FEVS_2010-2019\FEVS2012_PRDF.csv"
{res}{txt}(encoding automatically selected: ISO-8859-1)
{res}{text}(97 vars, 687,687 obs)

{com}. drop if q17=="X"
{txt}(27,152 observations deleted)

{com}. drop if q17==""
{txt}(4,078 observations deleted)

{com}. drop if q37=="X"
{txt}(26,254 observations deleted)

{com}. drop if q37==""
{txt}(16,967 observations deleted)

{com}. drop if q38=="X"
{txt}(26,450 observations deleted)

{com}. drop if q38==""
{txt}(3,854 observations deleted)

{com}. drop if q15=="X"
{txt}(5,481 observations deleted)

{com}. drop if q15==""
{txt}(1,450 observations deleted)

{com}. drop if q22=="X"
{txt}(19,007 observations deleted)

{com}. drop if q22==""
{txt}(2,304 observations deleted)

{com}. drop if q25=="X"
{txt}(9,807 observations deleted)

{com}. drop if q25==""
{txt}(1,739 observations deleted)

{com}. drop if q33=="X"
{txt}(10,403 observations deleted)

{com}. drop if q33==""
{txt}(2,967 observations deleted)

{com}. drop if q48==.
{txt}(5,718 observations deleted)

{com}. drop if q49==.
{txt}(1,343 observations deleted)

{com}. destring q17, replace
{txt}q17: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q37, replace
{txt}q37: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q38, replace
{txt}q38: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q15, replace
{txt}q15: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q22, replace
{txt}q22: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q25, replace
{txt}q25: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q33, replace
{txt}q33: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. drop if q55=="X"
{txt}(7,504 observations deleted)

{com}. drop if q55==""
{txt}(7,164 observations deleted)

{com}. drop if q45=="X"
{txt}(14,033 observations deleted)

{com}. drop if q45==""
{txt}(1,663 observations deleted)

{com}. drop if q34=="X"
{txt}(8,046 observations deleted)

{com}. drop if q34==""
{txt}(1,349 observations deleted)

{com}. destring q55, replace
{txt}q55: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q45, replace
{txt}q45: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q34, replace
{txt}q34: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. drop if dsuper=="X"
{txt}(0 observations deleted)

{com}. drop if dsuper==""
{txt}(11,618 observations deleted)

{com}. drop if dsex=="X"
{txt}(0 observations deleted)

{com}. drop if dsex==""
{txt}(4,688 observations deleted)

{com}. drop if dminority==.
{txt}(11,422 observations deleted)

{com}. gen minority = 0 if dminority==2
{txt}(153,520 missing values generated)

{com}. replace minority = 1 if dminority==1
{txt}(153,520 real changes made)

{com}. gen gender = 1 if dsex == "B"
{txt}(259,106 missing values generated)

{com}. replace gender = 0 if dsex == "A"
{txt}(259,106 real changes made)

{com}. gen supervisor = 1 if dsuper == "B" 
{txt}(349,480 missing values generated)

{com}. replace supervisor = 0 if dsuper == "A"
{txt}(349,480 real changes made)

{com}. 
. svyset [pweight=postwt]

{txt}Sampling weights:{col 19}{res}postwt
             {txt}VCE:{col 19}{res}linearized
     {txt}Single unit:{col 19}{res}missing
        {txt}Strata 1:{col 19}<one>
 Sampling unit 1:{col 19}<observations>
           FPC 1:{col 19}<zero>
{p2colreset}{...}

{com}. 
. svy linearized : sem (JUSTICE -> DISTRIBUTIVE, ) (JUSTICE -> PROCEDURAL, ) (JUSTICE -> INTERPERSONAL, ) (DISTRIBUTIVE -> q22, ) (DISTRIBUTIVE -> q25, ) (DISTRIBUTIVE -> q33, ) (PROCEDURAL -> q15, ) (PROCEDURAL -> q17, ) (PROCEDURAL -> q37, ) (PROCEDURAL -> q38, )(INTERPERSONAL -> q48, ) (INTERPERSONAL -> q49, ), standardized latent(JUSTICE DISTRIBUTIVE PROCEDURAL INTERPERSONAL ) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 52}{lalign 15:Number of obs}{col 67} = {res}{ralign 9:455,226}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 52}{lalign 15:Population size}{col 67} = {res}{ralign 9:1,228,828}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:455,226}{txt}{col 52}{lalign 15:Design df}{col 67} = {res}{ralign 9:455,225}

{p 0 7}{space 1}{text:( 1)}{space 1} [q22]DISTRIBUTIVE = 1{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} [q15]PROCEDURAL = 1{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} [q48]INTERPERSONAL = 1{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} [DISTRIBUTIVE]JUSTICE = 1{p_end}
{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}  Linearized
{col 1}       Standardized{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural         {col 21}{txt}{c |}
{space 2}{col 3}DISTRIBUTIVE     {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .8556956{col 33}{space 2} .0015464{col 44}{space 1}  553.34{col 53}{space 3}0.000{col 61}{space 4} .8526647{col 74}{space 3} .8587265
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}PROCEDURAL       {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .9815429{col 33}{space 2} .0016224{col 44}{space 1}  604.99{col 53}{space 3}0.000{col 61}{space 4}  .978363{col 74}{space 3} .9847228
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}INTERPERSONAL    {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .7133279{col 33}{space 2} .0018959{col 44}{space 1}  376.26{col 53}{space 3}0.000{col 61}{space 4} .7096121{col 74}{space 3} .7170437
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement        {col 21}{txt}{c |}
{space 2}{col 3}q22              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8397518{col 33}{space 2} .0011663{col 44}{space 1}  720.00{col 53}{space 3}0.000{col 61}{space 4} .8374658{col 74}{space 3} .8420378
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.437066{col 33}{space 2}  .004115{col 44}{space 1}  592.24{col 53}{space 3}0.000{col 61}{space 4} 2.429001{col 74}{space 3} 2.445131
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q25              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8307044{col 33}{space 2} .0012022{col 44}{space 1}  691.00{col 53}{space 3}0.000{col 61}{space 4} .8283482{col 74}{space 3} .8330607
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.521391{col 33}{space 2} .0045104{col 44}{space 1}  559.02{col 53}{space 3}0.000{col 61}{space 4} 2.512551{col 74}{space 3} 2.530232
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q33              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .7035303{col 33}{space 2} .0015886{col 44}{space 1}  442.85{col 53}{space 3}0.000{col 61}{space 4} .7004166{col 74}{space 3} .7066441
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.243065{col 33}{space 2} .0033562{col 44}{space 1}  668.33{col 53}{space 3}0.000{col 61}{space 4} 2.236487{col 74}{space 3} 2.249643
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q15              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .6228941{col 33}{space 2} .0022584{col 44}{space 1}  275.81{col 53}{space 3}0.000{col 61}{space 4} .6184676{col 74}{space 3} .6273205
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.253642{col 33}{space 2} .0079151{col 44}{space 1}  411.07{col 53}{space 3}0.000{col 61}{space 4} 3.238129{col 74}{space 3} 3.269156
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q17              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2}   .74802{col 33}{space 2} .0016244{col 44}{space 1}  460.49{col 53}{space 3}0.000{col 61}{space 4} .7448362{col 74}{space 3} .7512038
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.984951{col 33}{space 2} .0065608{col 44}{space 1}  454.97{col 53}{space 3}0.000{col 61}{space 4} 2.972093{col 74}{space 3}  2.99781
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q37              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8243079{col 33}{space 2} .0013712{col 44}{space 1}  601.18{col 53}{space 3}0.000{col 61}{space 4} .8216205{col 74}{space 3} .8269953
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.722926{col 33}{space 2} .0054675{col 44}{space 1}  498.02{col 53}{space 3}0.000{col 61}{space 4}  2.71221{col 74}{space 3} 2.733642
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q38              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8049562{col 33}{space 2} .0015029{col 44}{space 1}  535.60{col 53}{space 3}0.000{col 61}{space 4} .8020105{col 74}{space 3} .8079018
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.310457{col 33}{space 2} .0081759{col 44}{space 1}  404.91{col 53}{space 3}0.000{col 61}{space 4} 3.294433{col 74}{space 3} 3.326482
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q48              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2} .9350464{col 33}{space 2} .0009928{col 44}{space 1}  941.79{col 53}{space 3}0.000{col 61}{space 4} .9331005{col 74}{space 3} .9369923
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.718772{col 33}{space 2} .0096911{col 44}{space 1}  383.73{col 53}{space 3}0.000{col 61}{space 4} 3.699778{col 74}{space 3} 3.737766
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q49              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2} .9152929{col 33}{space 2} .0011195{col 44}{space 1}  817.58{col 53}{space 3}0.000{col 61}{space 4} .9130987{col 74}{space 3} .9174871
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.993619{col 33}{space 2} .0114239{col 44}{space 1}  349.59{col 53}{space 3}0.000{col 61}{space 4} 3.971229{col 74}{space 3}  4.01601
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}var(e.q22){c |}{col 21}{res}{space 2} .2948169{col 33}{space 2} .0019588{col 61}{space 4} .2910025{col 74}{space 3} .2986813
{txt}{space 10}var(e.q25){c |}{col 21}{res}{space 2} .3099301{col 33}{space 2} .0019973{col 61}{space 4} .3060401{col 74}{space 3} .3138696
{txt}{space 10}var(e.q33){c |}{col 21}{res}{space 2}  .505045{col 33}{space 2} .0022353{col 61}{space 4} .5006828{col 74}{space 3} .5094453
{txt}{space 10}var(e.q15){c |}{col 21}{res}{space 2}  .612003{col 33}{space 2} .0028135{col 61}{space 4} .6065134{col 74}{space 3} .6175423
{txt}{space 10}var(e.q17){c |}{col 21}{res}{space 2}  .440466{col 33}{space 2} .0024302{col 61}{space 4} .4357286{col 74}{space 3}  .445255
{txt}{space 10}var(e.q37){c |}{col 21}{res}{space 2} .3205164{col 33}{space 2} .0022605{col 61}{space 4} .3161164{col 74}{space 3} .3249777
{txt}{space 10}var(e.q38){c |}{col 21}{res}{space 2} .3520456{col 33}{space 2} .0024196{col 61}{space 4} .3473351{col 74}{space 3} .3568199
{txt}{space 10}var(e.q48){c |}{col 21}{res}{space 2} .1256882{col 33}{space 2} .0018567{col 61}{space 4} .1221013{col 74}{space 3} .1293805
{txt}{space 10}var(e.q49){c |}{col 21}{res}{space 2}  .162239{col 33}{space 2} .0020494{col 61}{space 4} .1582716{col 74}{space 3} .1663058
{txt}{space 1}var(e.DISTRIBUTIVE){c |}{col 21}{res}{space 2}  .267785{col 33}{space 2} .0026465{col 61}{space 4} .2626478{col 74}{space 3} .2730227
{txt}{space 3}var(e.PROCEDURAL){c |}{col 21}{res}{space 2} .0365735{col 33}{space 2}  .003185{col 61}{space 4} .0308347{col 74}{space 3} .0433803
{txt}var(e.INTERPERSONAL){c |}{col 21}{res}{space 2} .4911633{col 33}{space 2} .0027047{col 61}{space 4} .4858906{col 74}{space 3} .4964932
{txt}{space 8}var(JUSTICE){c |}{col 21}{res}{space 2}        1{col 33}{space 2}        .{col 61}{space 4}        .{col 74}{space 3}        .
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.039}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.968}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict justice, latent(JUSTICE)
{res}{txt}
{com}. 
. svy linearized : sem (DIVERSITY -> q34, ) (DIVERSITY -> q45, ) (DIVERSITY -> q55, ), standardized latent(DIVERSITY) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 52}{lalign 15:Number of obs}{col 67} = {res}{ralign 9:455,226}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 52}{lalign 15:Population size}{col 67} = {res}{ralign 9:1,228,828}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:455,226}{txt}{col 52}{lalign 15:Design df}{col 67} = {res}{ralign 9:455,225}

{p 0 7}{space 1}{text:( 1)}{space 1} [q34]DIVERSITY = 1{p_end}
{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 15}{c |}{col 27}  Linearized
{col 1} Standardized{col 15}{c |} Coefficient{col 27}  std. err.{col 39}      t{col 47}   P>|t|{col 55}     [95% con{col 68}f. interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement  {col 15}{txt}{c |}
{space 2}{col 3}q34        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .6732566{col 27}{space 2}  .002287{col 38}{space 1}  294.39{col 47}{space 3}0.000{col 55}{space 4} .6687742{col 68}{space 3}  .677739
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.413827{col 27}{space 2}  .007888{col 38}{space 1}  432.79{col 47}{space 3}0.000{col 55}{space 4} 3.398367{col 68}{space 3} 3.429287
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q45        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .7640535{col 27}{space 2} .0021386{col 38}{space 1}  357.27{col 47}{space 3}0.000{col 55}{space 4}  .759862{col 68}{space 3}  .768245
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.571359{col 27}{space 2} .0088723{col 38}{space 1}  402.53{col 47}{space 3}0.000{col 55}{space 4} 3.553969{col 68}{space 3} 3.588748
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q55        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .8191155{col 27}{space 2} .0018661{col 38}{space 1}  438.95{col 47}{space 3}0.000{col 55}{space 4}  .815458{col 68}{space 3}  .822773
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.440461{col 27}{space 2}  .008234{col 38}{space 1}  417.83{col 47}{space 3}0.000{col 55}{space 4} 3.424322{col 68}{space 3} 3.456599
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}var(e.q34){c |}{col 15}{res}{space 2} .5467255{col 27}{space 2} .0030794{col 55}{space 4} .5407232{col 68}{space 3} .5527946
{txt}{space 4}var(e.q45){c |}{col 15}{res}{space 2} .4162222{col 27}{space 2} .0032679{col 55}{space 4} .4098662{col 68}{space 3} .4226768
{txt}{space 4}var(e.q55){c |}{col 15}{res}{space 2} .3290498{col 27}{space 2} .0030571{col 55}{space 4} .3231122{col 68}{space 3} .3350964
{txt}var(DIVERSITY){c |}{col 15}{res}{space 2}        1{col 27}{space 2}        .{col 55}{space 4}        .{col 68}{space 3}        .
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.000}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.810}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict diversity, latent(DIVERSITY)
{res}{txt}
{com}. 
. keep if agency =="AM" | agency =="IB" | agency =="FQ" | agency =="ED" | agency =="DN" | agency =="HU" | agency =="ST" | agency =="EP" | agency =="EE" | agency =="FC" | agency =="DR" | agency =="FT" | agency =="GS" | agency =="NN" | agency =="NQ" | agency =="CU" | agency =="NL" | agency =="NF" | agency =="NU" | agency =="OM" | agency =="BG" | agency =="RR" | agency =="SE" | agency =="SB" | agency =="SZ" | subelem =="DD10" | subelem =="DD63" | subelem =="DD35" | subelem =="DD04" | subelem =="DD07" | subelem =="DD27" | subelem =="DD60" | subelem =="AG10" | subelem =="AG01" | subelem =="AG04" | subelem =="AG05" | subelem =="AG06" | subelem =="CM03" | subelem =="CM05" | subelem =="CM06" | subelem =="CM07" | subelem =="CM11" | subelem =="DD16" | subelem =="HE01" | subelem =="HE03" | subelem =="HE04" | subelem =="HE05" | subelem =="HE06" | subelem =="HE07" | subelem =="HE08" | subelem =="HE09" | subelem =="HS04" | subelem =="HS05" | subelem =="HS14" | subelem =="HS01" | subelem =="HS03" | subelem =="HS02" | subelem =="HS06" | subelem =="HS12" | subelem =="HS10" |subelem =="DJ15" | subelem =="DJ03" | subelem =="DJEA" | subelem =="DJ12" | subelem =="DJ09" | subelem =="DJ02" | subelem =="DJ08" | subelem =="DJ11" | subelem =="DL03" | subelem =="DL02" | subelem =="DL10"| subelem =="DL09" | subelem =="DL04" | subelem =="DL06" | agency =="AF" | agency =="AR" | subelem =="IN03" | subelem =="IN01" | subelem =="IN02" | subelem =="IN06" | subelem =="IN04" | subelem =="IN05" | subelem =="IN10" | agency =="NV" | subelem =="TR01" | subelem =="TR03" | subelem =="TR06" | subelem =="TR11" | subelem =="TR09" | subelem =="TR07" | subelem =="TD02" | subelem =="TD03" | subelem =="TD04" | subelem =="VA03" | subelem =="VA02"
{txt}(26,163 observations deleted)

{com}. 
. svy linearized : sem (JUSTICE -> DISTRIBUTIVE, ) (JUSTICE -> PROCEDURAL, ) (JUSTICE -> INTERPERSONAL, ) (DISTRIBUTIVE -> q22, ) (DISTRIBUTIVE -> q25, ) (DISTRIBUTIVE -> q33, ) (PROCEDURAL -> q15, ) (PROCEDURAL -> q17, ) (PROCEDURAL -> q37, ) (PROCEDURAL -> q38, )(INTERPERSONAL -> q48, ) (INTERPERSONAL -> q49, ), standardized latent(JUSTICE DISTRIBUTIVE PROCEDURAL INTERPERSONAL ) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 52}{lalign 15:Number of obs}{col 67} = {res}{ralign 9:429,063}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 52}{lalign 15:Population size}{col 67} = {res}{ralign 9:1,161,912}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:429,063}{txt}{col 52}{lalign 15:Design df}{col 67} = {res}{ralign 9:429,062}

{p 0 7}{space 1}{text:( 1)}{space 1} [q22]DISTRIBUTIVE = 1{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} [q15]PROCEDURAL = 1{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} [q48]INTERPERSONAL = 1{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} [DISTRIBUTIVE]JUSTICE = 1{p_end}
{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}  Linearized
{col 1}       Standardized{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural         {col 21}{txt}{c |}
{space 2}{col 3}DISTRIBUTIVE     {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .8550055{col 33}{space 2}  .001579{col 44}{space 1}  541.47{col 53}{space 3}0.000{col 61}{space 4} .8519106{col 74}{space 3} .8581003
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}PROCEDURAL       {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2}  .981315{col 33}{space 2} .0016527{col 44}{space 1}  593.77{col 53}{space 3}0.000{col 61}{space 4} .9780757{col 74}{space 3} .9845542
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}INTERPERSONAL    {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .7132416{col 33}{space 2} .0018926{col 44}{space 1}  376.86{col 53}{space 3}0.000{col 61}{space 4} .7095322{col 74}{space 3}  .716951
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement        {col 21}{txt}{c |}
{space 2}{col 3}q22              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8398362{col 33}{space 2} .0011824{col 44}{space 1}  710.28{col 53}{space 3}0.000{col 61}{space 4} .8375187{col 74}{space 3} .8421537
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.435194{col 33}{space 2} .0041349{col 44}{space 1}  588.94{col 53}{space 3}0.000{col 61}{space 4}  2.42709{col 74}{space 3} 2.443298
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q25              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8309174{col 33}{space 2} .0012057{col 44}{space 1}  689.14{col 53}{space 3}0.000{col 61}{space 4} .8285542{col 74}{space 3} .8332806
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.523009{col 33}{space 2} .0045197{col 44}{space 1}  558.23{col 53}{space 3}0.000{col 61}{space 4}  2.51415{col 74}{space 3} 2.531867
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q33              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .7025968{col 33}{space 2} .0016023{col 44}{space 1}  438.50{col 53}{space 3}0.000{col 61}{space 4} .6994564{col 74}{space 3} .7057372
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.240049{col 33}{space 2} .0033804{col 44}{space 1}  662.66{col 53}{space 3}0.000{col 61}{space 4} 2.233423{col 74}{space 3} 2.246674
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q15              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .6226458{col 33}{space 2} .0022408{col 44}{space 1}  277.86{col 53}{space 3}0.000{col 61}{space 4} .6182538{col 74}{space 3} .6270378
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.256512{col 33}{space 2} .0079863{col 44}{space 1}  407.76{col 53}{space 3}0.000{col 61}{space 4} 3.240859{col 74}{space 3} 3.272165
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q17              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .7471753{col 33}{space 2} .0016478{col 44}{space 1}  453.43{col 53}{space 3}0.000{col 61}{space 4} .7439456{col 74}{space 3} .7504049
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.994396{col 33}{space 2} .0065796{col 44}{space 1}  455.10{col 53}{space 3}0.000{col 61}{space 4}   2.9815{col 74}{space 3} 3.007291
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q37              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8238237{col 33}{space 2}   .00139{col 44}{space 1}  592.66{col 53}{space 3}0.000{col 61}{space 4} .8210992{col 74}{space 3} .8265481
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.726751{col 33}{space 2} .0054911{col 44}{space 1}  496.57{col 53}{space 3}0.000{col 61}{space 4} 2.715988{col 74}{space 3} 2.737513
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q38              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8040703{col 33}{space 2} .0015178{col 44}{space 1}  529.77{col 53}{space 3}0.000{col 61}{space 4} .8010955{col 74}{space 3} .8070451
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.316925{col 33}{space 2} .0082241{col 44}{space 1}  403.32{col 53}{space 3}0.000{col 61}{space 4} 3.300806{col 74}{space 3} 3.333044
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q48              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2} .9347329{col 33}{space 2} .0010053{col 44}{space 1}  929.76{col 53}{space 3}0.000{col 61}{space 4} .9327624{col 74}{space 3} .9367033
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  3.71931{col 33}{space 2} .0098003{col 44}{space 1}  379.51{col 53}{space 3}0.000{col 61}{space 4} 3.700102{col 74}{space 3} 3.738518
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q49              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2} .9154276{col 33}{space 2} .0011035{col 44}{space 1}  829.58{col 53}{space 3}0.000{col 61}{space 4} .9132648{col 74}{space 3} .9175904
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 4.000725{col 33}{space 2} .0115177{col 44}{space 1}  347.36{col 53}{space 3}0.000{col 61}{space 4} 3.978151{col 74}{space 3} 4.023299
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}var(e.q22){c |}{col 21}{res}{space 2} .2946752{col 33}{space 2} .0019861{col 61}{space 4} .2908082{col 74}{space 3} .2985936
{txt}{space 10}var(e.q25){c |}{col 21}{res}{space 2} .3095763{col 33}{space 2} .0020037{col 61}{space 4} .3056739{col 74}{space 3} .3135286
{txt}{space 10}var(e.q33){c |}{col 21}{res}{space 2} .5063578{col 33}{space 2} .0022515{col 61}{space 4} .5019641{col 74}{space 3}   .51079
{txt}{space 10}var(e.q15){c |}{col 21}{res}{space 2} .6123122{col 33}{space 2} .0027905{col 61}{space 4} .6068672{col 74}{space 3}  .617806
{txt}{space 10}var(e.q17){c |}{col 21}{res}{space 2} .4417291{col 33}{space 2} .0024624{col 61}{space 4} .4369291{col 74}{space 3} .4465818
{txt}{space 10}var(e.q37){c |}{col 21}{res}{space 2} .3213145{col 33}{space 2} .0022903{col 61}{space 4} .3168569{col 74}{space 3}  .325835
{txt}{space 10}var(e.q38){c |}{col 21}{res}{space 2}  .353471{col 33}{space 2} .0024408{col 61}{space 4} .3487193{col 74}{space 3} .3582874
{txt}{space 10}var(e.q48){c |}{col 21}{res}{space 2} .1262744{col 33}{space 2} .0018795{col 61}{space 4} .1226439{col 74}{space 3} .1300124
{txt}{space 10}var(e.q49){c |}{col 21}{res}{space 2} .1619924{col 33}{space 2} .0020203{col 61}{space 4} .1580806{col 74}{space 3} .1660009
{txt}{space 1}var(e.DISTRIBUTIVE){c |}{col 21}{res}{space 2} .2689656{col 33}{space 2} .0027002{col 61}{space 4} .2637251{col 74}{space 3} .2743103
{txt}{space 3}var(e.PROCEDURAL){c |}{col 21}{res}{space 2} .0370209{col 33}{space 2} .0032436{col 61}{space 4} .0311794{col 74}{space 3} .0439568
{txt}var(e.INTERPERSONAL){c |}{col 21}{res}{space 2} .4912864{col 33}{space 2} .0026997{col 61}{space 4} .4860234{col 74}{space 3} .4966064
{txt}{space 8}var(JUSTICE){c |}{col 21}{res}{space 2}        1{col 33}{space 2}        .{col 61}{space 4}        .{col 74}{space 3}        .
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.039}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.967}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict justice2, latent (JUSTICE)
{res}{txt}
{com}. 
. svy linearized : sem (DIVERSITY -> q34, ) (DIVERSITY -> q45, ) (DIVERSITY -> q55, ), standardized latent(DIVERSITY) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 52}{lalign 15:Number of obs}{col 67} = {res}{ralign 9:429,063}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 52}{lalign 15:Population size}{col 67} = {res}{ralign 9:1,161,912}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:429,063}{txt}{col 52}{lalign 15:Design df}{col 67} = {res}{ralign 9:429,062}

{p 0 7}{space 1}{text:( 1)}{space 1} [q34]DIVERSITY = 1{p_end}
{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 15}{c |}{col 27}  Linearized
{col 1} Standardized{col 15}{c |} Coefficient{col 27}  std. err.{col 39}      t{col 47}   P>|t|{col 55}     [95% con{col 68}f. interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement  {col 15}{txt}{c |}
{space 2}{col 3}q34        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .6694275{col 27}{space 2}  .002344{col 38}{space 1}  285.59{col 47}{space 3}0.000{col 55}{space 4} .6648334{col 68}{space 3} .6740216
{txt}{space 8}_cons {c |}{col 15}{res}{space 2}  3.42145{col 27}{space 2}  .007906{col 38}{space 1}  432.77{col 47}{space 3}0.000{col 55}{space 4} 3.405955{col 68}{space 3} 3.436946
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q45        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .7639629{col 27}{space 2} .0021283{col 38}{space 1}  358.96{col 47}{space 3}0.000{col 55}{space 4} .7597915{col 68}{space 3} .7681342
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.577165{col 27}{space 2} .0089346{col 38}{space 1}  400.37{col 47}{space 3}0.000{col 55}{space 4} 3.559653{col 68}{space 3} 3.594676
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q55        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .8186851{col 27}{space 2} .0018892{col 38}{space 1}  433.36{col 47}{space 3}0.000{col 55}{space 4} .8149824{col 68}{space 3} .8223878
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.449498{col 27}{space 2} .0082409{col 38}{space 1}  418.58{col 47}{space 3}0.000{col 55}{space 4} 3.433346{col 68}{space 3}  3.46565
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}var(e.q34){c |}{col 15}{res}{space 2} .5518668{col 27}{space 2} .0031382{col 55}{space 4} .5457501{col 68}{space 3} .5580521
{txt}{space 4}var(e.q45){c |}{col 15}{res}{space 2} .4163607{col 27}{space 2} .0032519{col 55}{space 4} .4100358{col 68}{space 3} .4227833
{txt}{space 4}var(e.q55){c |}{col 15}{res}{space 2} .3297548{col 27}{space 2} .0030933{col 55}{space 4} .3237475{col 68}{space 3} .3358735
{txt}var(DIVERSITY){c |}{col 15}{res}{space 2}        1{col 27}{space 2}        .{col 55}{space 4}        .{col 68}{space 3}        .
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.000}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.809}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict diversity2, latent (DIVERSITY)
{res}{txt}
{com}. 
. sum justice, detail

                   {txt}Factor score (JUSTICE)
{hline 61}
      Percentiles      Smallest
 1%    {res}-2.089903      -2.226684
{txt} 5%    {res}-1.559472      -2.226684
{txt}10%    {res}-1.129533      -2.226684       {txt}Obs         {res}    429,063
{txt}25%    {res}-.4313818      -2.226684       {txt}Sum of wgt. {res}    429,063

{txt}50%    {res} .1703528                      {txt}Mean          {res} .0368267
                        {txt}Largest       Std. dev.     {res} .8036638
{txt}75%    {res} .5886141       1.358245
{txt}90%    {res} 1.020271       1.358245       {txt}Variance      {res} .6458756
{txt}95%    {res} 1.227843       1.358245       {txt}Skewness      {res}-.6431301
{txt}99%    {res} 1.358245       1.358245       {txt}Kurtosis      {res} 3.002416
{txt}
{com}. 
. sum justice2, detail

                   {txt}Factor score (JUSTICE)
{hline 61}
      Percentiles      Smallest
 1%    {res} -2.09076      -2.228057
{txt} 5%    {res}-1.560115      -2.228057
{txt}10%    {res}-1.129588      -2.228057       {txt}Obs         {res}    429,063
{txt}25%    {res} -.431715      -2.228057       {txt}Sum of wgt. {res}    429,063

{txt}50%    {res} .1704939                      {txt}Mean          {res} .0367223
                        {txt}Largest       Std. dev.     {res} .8039091
{txt}75%    {res} .5893587       1.358423
{txt}90%    {res} 1.020423       1.358423       {txt}Variance      {res} .6462699
{txt}95%    {res} 1.228492       1.358423       {txt}Skewness      {res}-.6432615
{txt}99%    {res} 1.358423       1.358423       {txt}Kurtosis      {res} 3.002788
{txt}
{com}. 
. sum diversity, detail

                  {txt}Factor score (DIVERSITY)
{hline 61}
      Percentiles      Smallest
 1%    {res}-1.858024      -1.858024
{txt} 5%    {res}-1.165126      -1.858024
{txt}10%    {res}-.7725089      -1.858024       {txt}Obs         {res}    429,063
{txt}25%    {res}-.3006134      -1.858024       {txt}Sum of wgt. {res}    429,063

{txt}50%    {res} .1585129                      {txt}Mean          {res} .0273655
                        {txt}Largest       Std. dev.     {res} .6175962
{txt}75%    {res} .4731099       .9421998
{txt}90%    {res} .7849014       .9421998       {txt}Variance      {res} .3814251
{txt}95%    {res} .9421998       .9421998       {txt}Skewness      {res}-.8147521
{txt}99%    {res} .9421998       .9421998       {txt}Kurtosis      {res} 3.665078
{txt}
{com}. 
. sum diversity2, detail

                  {txt}Factor score (DIVERSITY)
{hline 61}
      Percentiles      Smallest
 1%    {res}-1.847815      -1.847815
{txt} 5%    {res}-1.156326      -1.847815
{txt}10%    {res}-.7666713      -1.847815       {txt}Obs         {res}    429,063
{txt}25%    {res}-.3013004      -1.847815       {txt}Sum of wgt. {res}    429,063

{txt}50%    {res} .1596921                      {txt}Mean          {res} .0265738
                        {txt}Largest       Std. dev.     {res} .6141226
{txt}75%    {res} .4702828       .9356537
{txt}90%    {res} .7808735       .9356537       {txt}Variance      {res} .3771465
{txt}95%    {res} .9356537       .9356537       {txt}Skewness      {res}-.8151405
{txt}99%    {res} .9356537       .9356537       {txt}Kurtosis      {res} 3.664664
{txt}
{com}. 
. corr justice justice2
{txt}(obs=429,063)

             {c |}  justice justice2
{hline 13}{c +}{hline 18}
     justice {c |}{res}   1.0000
    {txt}justice2 {c |}{res}   1.0000   1.0000

{txt}
{com}. 
. corr diversity diversity2 
{txt}(obs=429,063)

             {c |} divers~y divers~2
{hline 13}{c +}{hline 18}
   diversity {c |}{res}   1.0000
  {txt}diversity2 {c |}{res}   1.0000   1.0000

{txt}
{com}. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\J.PARK\Dropbox\Discrimination Project_for me\Organizational Diversity\2023 Version_Merging\FINAL\CFA_2012.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 8 Aug 2024, 13:19:35
{txt}{.-}
{smcl}
{txt}{sf}{ul off}